#list
lst=["Sarah","Bob","Nancy","Bob",["dog","pig"]]
print(lst[0])
print(len(lst))
lst[2]=100
print(lst)
lst.pop(1)
print(lst)
lst.remove("Bob")
print(lst)
lst2=["fruits","tomatoes"]
lst.append(lst2)
print(lst)
lst.insert(0,"hello")
print(lst)
lst[1:3]=[]
print(lst)
lst[1:3]=[100,200]
print(lst)

#tuple
t=(1)
print(type(t))
t=(1,)
print(type(t))
t=(1,"hill","grace",["dog","pig"])
print(t[-1],id(t))
t[3][1]="hello"
print(t,id(t))
